package com.gxa.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "购货单记录表（购货及退货）")
public class Purchase {
  @ApiModelProperty(name = "purchase_Id",notes = "购货单商品记录id号",dataType = "int")
  private long purchase_Id;
  @ApiModelProperty(name = "receipt_Purchase_Id",notes = "外键，单据编号",dataType = "String",required = true)
  private String receipt_Purchase_Id;
  @ApiModelProperty(name = "goods_Id",notes = "商品编号",dataType = "String",required = true)
  private String goods_Id;
  @ApiModelProperty(name = "goods_Name",notes = "商品名称",dataType = "String",required = true)
  private String goods_Name;
  @ApiModelProperty(name = "warehouse_Id",notes = "仓库编号，外键",dataType = "int",required = true)
  private long warehouse_Id;
  @ApiModelProperty(name = "purchase_Number",notes = "数量",dataType = "int",required = true)
  private long purchase_Number;
  @ApiModelProperty(name = "purchase_Discountnum",notes = "折扣额",dataType = "double",required = true)
  private double purchase_Discountnum;
  @ApiModelProperty(name = "purchase_Money",notes = "购货金额 ",dataType = "double",required = true)
  private double purchase_Money;
  @ApiModelProperty(name = "purchase_Serial",notes = "序列号",dataType = "int",required = false)
  private long purchase_Serial;
  @ApiModelProperty(name = "purchase_Goodsnote",notes = "商品备注",dataType = "String",required = false)
  private String purchase_Goodsnote;
  @ApiModelProperty(name = "receipt_Pay_Id",notes = "收款单单据编号",dataType = "String",required = false)
  private String receipt_Pay_Id;

  private Warehouse warehouse;

  public long getPurchase_Id() {
    return purchase_Id;
  }

  public void setPurchase_Id(long purchase_Id) {
    this.purchase_Id = purchase_Id;
  }

  public String getReceipt_Pay_Id() {
    return receipt_Pay_Id;
  }

  public Warehouse getWarehouse() {
    return warehouse;
  }

  public void setWarehouse(Warehouse warehouse) {
    this.warehouse = warehouse;
  }

  public void setReceipt_Pay_Id(String receipt_Pay_Id) {
    this.receipt_Pay_Id = receipt_Pay_Id;
  }

  public String getReceipt_Purchase_Id() {
    return receipt_Purchase_Id;
  }

  public void setReceipt_Purchase_Id(String receipt_Purchase_Id) {
    this.receipt_Purchase_Id = receipt_Purchase_Id;
  }


  public String getGoods_Id() {
    return goods_Id;
  }

  public void setGoods_Id(String goods_Id) {
    this.goods_Id = goods_Id;
  }


  public String getGoods_Name() {
    return goods_Name;
  }

  public void setGoods_Name(String goods_Name) {
    this.goods_Name = goods_Name;
  }


  public long getWarehouse_Id() {
    return warehouse_Id;
  }

  public void setWarehouse_Id(long warehouse_Id) {
    this.warehouse_Id = warehouse_Id;
  }


  public long getPurchase_Number() {
    return purchase_Number;
  }

  public void setPurchase_Number(long purchase_Number) {
    this.purchase_Number = purchase_Number;
  }


  public double getPurchase_Discountnum() {
    return purchase_Discountnum;
  }

  public void setPurchase_Discountnum(double purchase_Discountnum) {
    this.purchase_Discountnum = purchase_Discountnum;
  }


  public double getPurchase_Money() {
    return purchase_Money;
  }

  public void setPurchase_Money(double purchase_Money) {
    this.purchase_Money = purchase_Money;
  }


  public long getPurchase_Serial() {
    return purchase_Serial;
  }

  public void setPurchase_Serial(long purchase_Serial) {
    this.purchase_Serial = purchase_Serial;
  }


  public String getPurchase_Goodsnote() {
    return purchase_Goodsnote;
  }

  public void setPurchase_Goodsnote(String purchase_Goodsnote) {
    this.purchase_Goodsnote = purchase_Goodsnote;
  }

  @Override
  public String toString() {
    return "Purchase{" +
            "purchase_Id=" + purchase_Id +
            ", receipt_Purchase_Id='" + receipt_Purchase_Id + '\'' +
            ", goods_Id='" + goods_Id + '\'' +
            ", goods_Name='" + goods_Name + '\'' +
            ", warehouse_Id=" + warehouse_Id +
            ", purchase_Number=" + purchase_Number +
            ", purchase_Discountnum=" + purchase_Discountnum +
            ", purchase_Money=" + purchase_Money +
            ", purchase_Serial=" + purchase_Serial +
            ", purchase_Goodsnote='" + purchase_Goodsnote + '\'' +
            ", receipt_Pay_Id='" + receipt_Pay_Id + '\'' +
            '}';
  }
}
